#!/usr/bin/env python
# encoding: utf-8


"""
@version: ??
@author: liangliang
@license: Apache Licence 
@contact: liangliangyy@gmail.com
@site: http://www.lylinux.org
@software: PyCharm
@file: urls.py
@time: 2015/10/2 12:00
"""

from django.conf.urls import include, url
from django.contrib import admin
from . import views

urlpatterns = [
    # ex: /polls/
    url(r'^$', views.index, name='index'),
    url(r'^ocrimg$', views.OCRImage, name='OCRImage'),
    # url(r'^getapis/weather/$',views.weather),
    url(r'^weather/(.+)/$', views.weather, name='weather'),
    url(r'^idcard/(.+)/$', views.idcard, name='idcard'),
    url(r'^sms/(.+)/(.+)/$', views.sms, name='sms'),
    url(r'^phonenum/(.+)/$', views.phonenum, name='phonenum'),
    url(r'^tuling/(.+)/$', views.tuling, name='tuling'),
    url(r'^getMusic/(.+)/$', views.getMusic, name='getMusic'),
     url(r'^getImages/$', views.getImages, name='getImages'),

    # url(r'^weather?(.+)$', views.weather),
    # ex: /polls/5/
    # url(r'^(?P<question_id>[0-9]+)/$', views.detail, name='getapis'),
    # ex: /polls/5/results/
    # url(r'^(?P<question_id>[0-9]+)/results/$', views.results, name='results'),
    # ex: /polls/5/vote/
    # url(r'^(?P<question_id>[0-9]+)/vote/$', views.vote, name='vote'),
]
